package cn.hd01.service;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import cn.hd01.repository.entity.OrderProduct;

public interface OrderProductService extends BaseService<OrderProduct, Integer> {
	Page<OrderProduct> findAll(OrderProduct orderProduct, Pageable pageable);
	
	Page<OrderProduct> pageOrderList(int sort, OrderProduct orderProduct,  Pageable pageable);
	
	Integer getProductCount(Integer id);
	
	List<OrderProduct> findByOrderId(Integer orderId);
	
	int deleteByOrderId(Integer orderId);
	
	List<OrderProduct> findParentOrderList(OrderProduct orderProduct);
	
	int updateProductName(String productName, Integer productId);
}
